﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="list.aspx.vb" Inherits="cricketmania.list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <br />
        <asp:ImageButton ID="ImageButton1" runat="server" Height="34px" 
            ImageUrl="~/images/download.jpg" Width="81px" />
</p>
    <p>
        &nbsp;</p>
<p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="cmSqlDataSource1" AllowSorting="True">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFormatString="detail.aspx?ID={0}" 
                DataTextField="schedule" DataNavigateUrlFields="ID" />
            <asp:HyperLinkField DataNavigateUrlFields="RelatedWebsites" 
                DataNavigateUrlFormatString="{0}" DataTextField="RelatedWebsites" 
                HeaderText="RelatedWebsites" />
            <asp:BoundField DataField="Results" HeaderText="Results" 
                SortExpression="Results" />
            <asp:BoundField DataField="Ratings" HeaderText="Ratings" 
                SortExpression="Ratings" />
            <asp:ImageField DataImageUrlField="Gallery" HeaderText="Thumbnail">
                <ControlStyle Height="200px" Width="200px" />
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="cmSqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:maniaConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:maniaConnectionString.ProviderName %>" 
        SelectCommand="SELECT [ID], [schedule], [Results], [Ratings], [RelatedWebsites], [Gallery] FROM [crick]">
    </asp:SqlDataSource>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
</asp:Content>
